<?php
class Sgit_Util_NumEs
{

    public function run($value,$decimales=2,$signo_decimal=',',$signo_miles='.')
    {
        
        if(is_numeric($value)){

            $locale=Zend_Registry::get('Zend_Locale');
            $value = Zend_Locale_Format::toNumber($value, array('locale' => $locale,'precision' =>$decimales));
        }
       
        
        return $value;  
        
    }   
}